<?php
class AccessibilityHelper extends Helper {
	var $helpers = array('Html', 'Form');
	
	function whereIAm($pageTitle = null, $data = null) {
		$output = "<span><span id='bullet'>&nbsp;</span>";
		if ($data == null) {
			$output .= "<span id='bullet'>&nbsp;</span>&nbsp;";
			$output .= $this->Html->link($this->params['models'][0], "/".$this->params['controller'] )."&nbsp;";
			$output .= "<span id='bullet'>&nbsp;</span>&nbsp;";
			$output .= $pageTitle;
		} else {
			foreach ($data as $nivel) {
				$output .= "<span id='bullet'>&nbsp;</span>&nbsp;";
				if ($nivel != end($data)) {
					$output .= $this->Html->link($nivel['title'], $nivel['link'])."&nbsp;";
				} else {
					$output .= $nivel['title'];
				}
			}
		}
		$output .= "</span>\n";
		return $output;
	}

	function required($dado) {
		$output = "";
		//$output .= "<acronym title='Este campo é obrigatório' class='acronym'>";
		$output .= $dado;
		$output .= "<font class='red'>";
		$output .= " *";
		$output .= "</font>";
		//$output .= "</acronym>";
		return $output;
	}
}

?>
